package com.project.easy.common.util.dto;

import java.io.Serializable;
import java.util.List;

/**
 * @author GreatorMan.cool
 * @copyright: Copyright (c) 2020
 * @company: 扬起科技有限公司
 * @param <T> 标签
 * @date 2021/10/1 22:43
 * @description: 分页反回参数
 */
public class PageResDto<T> implements Serializable {
    /**
     * 每页个数
     */
    private Integer pageSize;
    /**
     * 总页数
     */
    private Integer paegNum;
    /**
     * 总条数
     */
    private Integer total;
    /**
     * 数据
     */
    private List<T> list;

    public PageResDto() {
    }

    /**
     *反回参数
     * @param pageSize 每页条数
     * @param paegNum 当前页码
     * @param total 总条数
     * @param list 数据
     */
    public PageResDto(Integer pageSize, Integer paegNum, Integer total, List<T> list) {
        this.pageSize = pageSize;
        this.paegNum = paegNum;
        this.total = total;
        this.list = list;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPaegNum() {
        return paegNum;
    }

    public void setPaegNum(Integer paegNum) {
        this.paegNum = paegNum;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
